<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{$title}</title>
<link rel="stylesheet" href="Res/boot/css/bootstrap.min.css" type="text/css" media="screen" />
<script type="text/javascript" src="Res/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="Res/js/jquery.cookie.js"></script>
<link rel="stylesheet" href="Res/css/global.css" type="text/css" />
<link rel="stylesheet" href="Res/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="Res/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="Res/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="Res/kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="Res/kindeditor/plugins/code/prettify.js"></script>
</head>

<body>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12 panel panel-info">  
            <span class="cp_title">{$title}</span>
            <div class="add_cp">
                    <a href="index.php?c={$class}&m=view">+返回{$title}列表</a>
            </div>        
            <div class="table_con" style="margin: 0 auto;text-align: center;">
                <form class="form-horizontal" role="form" id="myform" action="index.php?c={$class}&m=new_edit" method="post">
                <div class="form-group">
                    <label class="col-sm-2 control-label">标题：</label>
                    <label class="col-sm-5">{$row.tname}</label>
                </div>    
                <div class="form-group">
                    <label class="col-sm-2 control-label">楼：</label>
                    <label class="col-sm-5">{$row.floor}</label>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">源地址：</label>
                    <label class="col-sm-5"><a href="{$row.ori_url}" target="_blank">{$row.ori_url}</a></label>                   
                </div>    
                <div class="form-group">
                    <label class="col-sm-2 control-label">内容：</label>
                    <div class="col-sm-5">
                        <textarea class="form-control" name="content" id="content" style="height:400px;visibility:hidden;">
                        {$row.content}
                        </textarea>
                    </div>
                </div>              
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-5">
                        <input type="hidden" value="{$token}" name="token" />
                        <input type="hidden" value="{$row.cid}" name="cid" />
                        <button type="submit" id="btn_add" class="btn btn-primary btn-lg btn-block">编辑</button>            
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>
{literal}
<script>   
KindEditor.ready(function(K) {
        var editor1 = K.create('textarea[name="content"]', {
                cssPath : 'Res/kindeditor/plugins/code/prettify.css',
                uploadJson : 'Res/kindeditor/php/upload_json.php',
                fileManagerJson : 'Res/kindeditor/php/file_manager_json.php',
                allowFileManager : true,
                filterMode : false,//禁止过滤html
                afterCreate : function() {
                }
        });
});
</script>
{/literal}
</script>
</body>
</html>
